home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
var
/
lib
/
dpkg
/
info
/
grub.postinst
< prev
next >
Wrap
Text File
|
2008-10-21
|
631b
|
27 lines
#!/bin/sh
if [ "$1" = "configure" ]; then
if dpkg --compare-versions "$2" lt-nl "0.97-29ubuntu6"; then
update-grub
fi
if dpkg --compare-versions "$2" lt "0.97-29ubuntu26"; then
# This is an old misnamed config file we need to get rid of
rm -f /etc/event.d/event.d-last-good-boot
fi
if dpkg --compare-versions "$2" lt "0.97-29ubuntu38"; then
# Remnants of when this was default
rm -rf /boot/last-good-boot /lib/modules/last-good-boot
fi
fi
if [ "x$1" = xtriggered ] ; then
/usr/sbin/update-grub
fi
if [ "$1" = "configure" ]; then
# Create a last-good-boot if one doesn't exist.
/usr/sbin/kernel-helper -i
fi